import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useRoomStore = defineStore('big-room', () => {
  const roomMessage = ref([])
  const setRoomMessage = (newRoomMessage) => {
    roomMessage.value = newRoomMessage
  }
  const removeRoomMessage = () => {
    roomMessage.value = ''
  }
  return {
    roomMessage,
    setRoomMessage,
    removeRoomMessage,
  }
})
